﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Niti.OrderManage.DTO
{
   public class OrderLineItemDto
    {
        /// <summary>
        /// 行号
        /// </summary>
        public int LineNumber { get; set; }
        #region 商品

        /// <summary>
        /// 商品唯一编号
        /// </summary>
        public string Commodity_Code { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>

        public string Commodity_CName { get; set; }
        /// <summary>
        /// 商品单价
        /// </summary>

        public float Commodity_CPrice { get; set; }
        #endregion
        /// <summary>
        /// 数量
        /// </summary>
        public int Count { get; set; }
        /// <summary>
        /// 小计
        /// </summary>

        public float Subtotal { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreationTime { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
    }

    public class OrderItemDto
    {

        #region 商品

        /// <summary>
        /// 商品唯一编号
        /// </summary>
        public string Commodity_Code { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>

        public string Commodity_CName { get; set; }
        /// <summary>
        /// 商品单价
        /// </summary>

        public float Commodity_CPrice { get; set; }
        #endregion
        /// <summary>
        /// 数量
        /// </summary>
        public int Count { get; set; }
    }

    public class ReceiptOrderLineItemDto
    {
        /// <summary>
        /// 入库订单编号
        /// </summary>
        public string ReceiptOrderCode { get; set; }
        /// <summary>
        /// 行号
        /// </summary>
        public int LineNumber { get; set; }
        #region 商品

        /// <summary>
        /// 商品唯一编号
        /// </summary>
        public string Commodity_Code { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>

        public string Commodity_CName { get; set; }
        /// <summary>
        /// 商品单价
        /// </summary>

        public float Commodity_CPrice { get; set; }
        #endregion
        /// <summary>
        /// 预定数量
        /// </summary>
        public int Count { get; set; }
        /// <summary>
        /// 预定小计
        /// </summary>

        public float Subtotal { get; set; }
        /// <summary>
        /// 实际到货数量
        /// </summary>

        public int RealityCount { get; set; }
        /// <summary>
        /// 实际小计
        /// </summary>
        public float RealitySubtotal { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreationTime { get; set; } 
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
    }

   public class ReceiptItemDto
    {
        /// <summary>
        /// 行号
        /// </summary>
        public int LineNumber { get; set; }

        /// <summary>
        /// 实际商品单价
        /// </summary>
        public float RealityCPrice { get; set; }

        /// <summary>
        /// 实际到货数量
        /// </summary>

        public int RealityCount { get; set; }
    }

   public class ReceiptItemsDto
    {
        /// <summary>
        /// 入库订单编号
        /// </summary>
        public string ReceiptCode { get; set; }
        public List<ReceiptItemDto> Items { get; set; }
    }
}
